/****************************************************************************
** Form implementation generated from reading ui file 'form1.ui'
**
** Created: 日  3月 28 14:21:15 2010
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.1.1   edited Nov 21 17:40 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "form1.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qspinbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>

#include "qstring.h"
#include "stdio.h"
#include "form1.ui.h"
/* 
 *  Constructs a Form1 as a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f'.
 *
 *  The dialog will by default be modeless, unless you set 'modal' to
 *  TRUE to construct a modal dialog.
 */
Form1::Form1( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )

{
    if ( !name )
	setName( "Form1" );

    onoff = new QSpinBox( this, "onoff" );
    onoff->setGeometry( QRect( 200, 20, 171, 71 ) );

    load = new QPushButton( this, "load" );
    load->setGeometry( QRect( 220, 140, 121, 41 ) );
    languageChange();
    resize( QSize(542, 264).expandedTo(minimumSizeHint()) );

    // signals and slots connections
    connect( load, SIGNAL( clicked() ), this, SLOT( get() ) );
}

/*
 *  Destroys the object and frees any allocated resources
 */
Form1::~Form1()
{
    // no need to delete child widgets, Qt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void Form1::languageChange()
{
    setCaption( tr( "Form1" ) );
    load->setText( tr( "load" ) );
}

